package top.kiterunner.learning.concurrency_test;

import java.util.concurrent.TimeUnit;

/**
 * AdorynZhao in Tencent-UESTC.
 * Source Code Created on 2017/7/3.
 */
public class ThreadDemo5_Derived extends ThreadDemo5_Base {

    @Override
    public synchronized void method() {
        System.out.println("Derived Method Starting...");
        try {
            TimeUnit.SECONDS.sleep(1);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        super.method();
        System.out.println("Derived Method Ending...");
    }
}
